package com.uni.db;

import java.util.List;

import org.hibernate.Session;

import com.uni.domain.File;
import com.uni.domain.Identifiable;

public interface GenericService<T extends Identifiable> {

    T get(Long id);

    void save(T obj);

    void delete(T obj);

    List<T> listAll();

    int countAll();

    void evict(T obj);

    void flushSession();

    void clearSession();

    Session getSession();
    
}
